﻿using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace IotFun.Views.EquipGroupView.Dto;

/// <summary>
/// 设备分组基础输入参数
/// </summary>
public class EquipGroupBaseInput
{
    /// <summary>
    /// 组名称
    /// </summary>
    public virtual string name { get; set; }

    /// <summary>
    /// 父Id
    /// </summary>
    public virtual long parentid { get; set; }

    /// <summary>
    /// 组备注
    /// </summary>
    public virtual string remark { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public virtual DateTime createtime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public virtual DateTime updatetime { get; set; }

    /// <summary>
    /// 创建者Id
    /// </summary>
    public virtual long createuserid { get; set; }

    /// <summary>
    /// 修改者Id
    /// </summary>
    public virtual long updateuserid { get; set; }

    /// <summary>
    /// 软删除
    /// </summary>
    public virtual bool isdelete { get; set; }

}

/// <summary>
/// 设备分组分页查询输入参数
/// </summary>
public class EquipGroupInput : BasePageInput
{
    /// <summary>
    /// 组名称
    /// </summary>
    public string name { get; set; }

}

/// <summary>
/// 设备分组增加输入参数
/// </summary>
public class AddEquipGroupInput : EquipGroupBaseInput
{
}

/// <summary>
/// 设备分组删除输入参数
/// </summary>
public class DeleteEquipGroupInput : BaseIdInput
{
    /// <summary>
    /// Id
    /// </summary>
    [Required(ErrorMessage = "Id不能为空")]
    public long id { get; set; }

}

/// <summary>
/// 设备分组更新输入参数
/// </summary>
public class UpdateEquipGroupInput : EquipGroupBaseInput
{
    /// <summary>
    /// Id
    /// </summary>
    [Required(ErrorMessage = "Id不能为空")]
    public long id { get; set; }

}

/// <summary>
/// 设备分组主键查询输入参数
/// </summary>
public class QueryByIdEquipGroupInput : DeleteEquipGroupInput
{

}
